projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360ffb8
)
Fix the build with cups < 2.3
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 31 Jul 2020 14:00:20 +0000
(10:00 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 31 Jul 2020 14:01:45 +0000
(10:01 -0400)
PPD_CUSTOM_UNKNOWN was introduced in cups 2.3.
Only handle it when we build against a new enough cups.
Fixes: #2968
modules/printbackends/gtkprintbackendcups.c
patch
|
blob
|
history
diff --git
a/modules/printbackends/gtkprintbackendcups.c
b/modules/printbackends/gtkprintbackendcups.c
index 6453e824d93893f39fa832f34d9aa05b7f78a916..f3435b57bbf44cf73a8702b086394a6be10a514f 100644
(file)
--- a/
modules/printbackends/gtkprintbackendcups.c
+++ b/
modules/printbackends/gtkprintbackendcups.c
@@
-647,7
+647,9
@@
add_cups_options (const char *key,
custom_value = TRUE;
break;
+#if CUPS_VERSION_MAJOR == 2 && CUPS_VERSION_MINOR >= 3
case PPD_CUSTOM_UNKNOWN:
+#endif
default :
custom_value = FALSE;
}